import { defHttp } from "/@/utils/http/axios";

enum Api {
  queryBusinessAccount = '/account/business/queryBusinessAccount',
  queryIndexStatistics = '/account/business/queryIndexStatistics',
  queryIndexNewList = '/account/business/queryIndexNewList',
  templateDownload = '/account/business/templateDownload',
}

/**
 * 查询当前登录商户账户信息
 * @param params
 */
export const queryBusinessAccount = (params) => defHttp.get({ url: Api.queryBusinessAccount, params }, { isTransformResponse: false });

/**
 * 查询首页统计数据
 * @param params
 */
export const queryIndexStatistics = (params) => defHttp.get({ url: Api.queryIndexStatistics, params }, { isTransformResponse: false });

/**
 * 查询首页最新充值记录
 * @param params
 */
export const queryIndexNewList = (params) => defHttp.get({ url: Api.queryIndexNewList, params }, { isTransformResponse: false });

/**
 * 模板下载
 * @param params
 */
export const templateDownload = (params) => defHttp.get({ url: Api.templateDownload, params }, { isTransformResponse: false });
